/**
*  Module
*
* Description
*/
var app = angular.module('webapp');

app.service('DecorateService', ['$http','$q',DecorateService]);

function DecorateService($http , $q){
	return {
		getLevel2Menu:function(data){
			return handleRequest('GET','/getLevel2Menu',data,$http,$q);
		},
		getPower:function(data){
			return handleRequest('GET','/getPower',data,$http,$q);
		},
		getDecorateAll:function(data){
			return handleRequest('GET','/getDecorateAll',data,$http,$q);
		},
		addDecorate:function(data){
			return handleRequest('POST','/addDecorate',data,$http,$q);
		},
		uploadDecorate:function(data){
			return handleRequest('POST','/uploadDecorate',data,$http,$q);
		},
		removeDecorate:function(data){
			return handleRequest('POST','/removeDecorate',data,$http,$q);
		}
	};
}